package com.olap.starter.mapper;

import com.olap.starter.pojo.OnlineDictType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 字典类型表 Mapper 接口
 * </p>
 *
 * @author WBG
 * @since 2022-11-28
 */

public interface OnlineDictTypeMapper extends BaseMapper<OnlineDictType> {

    @Select("SELECT DICT_TYPE as CODE,DICT_NAME as NAME FROM SYS_DICT_TYPE  WHERE DICT_TYPE like 'online%' or SOURCE_TYPE = 'online' ")
    List<OnlineDictType> listOnline();
}
